package com.lwy.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Description
 * @Author liuzl
 * @Data 2022/7/14 16:56
 */
@Configuration
public class RestTemplateConfig {

    @Bean
    //@LoadBalanced // 开启负载均衡的功能
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }


}
